public class TestAnimal {
    public static void eat(Animal a){
        a.eat();
    }
    public static void main(String[] args) {
        Cat cat = new Cat("元宝",1);
        Dog1 dog1 = new Dog1("花花",2);
        eat(cat);
        eat(dog1);
    }
}
